<link rel="stylesheet" type="text/css" href="<?=gurl('css');?>/sites.css" />
<script language="javascript" src="<?=gurl('js');?>/user.js"></script>
<div class="login">
<? if($account):?>
<a href="/home/profile/<?=$account["account_id"];?>"><?=$account["account_username"];?></a><a href="<?=gurl('accounts/logout');?>">退出</a><a href="<?=gurl('about/contact');?>">建议</a>
<? else:?>
<a href="<?=gurl('accounts/');?>">登录</a><a href="<?=gurl('accounts/');?>">注册</a><a href="<?=gurl('about/contact');?>">建议</a>
<? endif;?>
</div>
<div class="blank8"></div>
<div class="w940">
	<div class="w660">
		<div class="hotTit"><h1 class="f22px left">发现轻站</h1><p class="backprev"><a href="<?=gurl('/');?>">返回首页</a></p></div>
		<p class="presentNum">目前已经有<strong class="cOrange"><script language="javascript" src="<?=gurl('site_statis/sites');?>"></script></strong>个轻站</p>
		<h3 class="hotIndex">轻站索引</h3>
        <ul class="hotwebList">
        <? foreach ($classes as $k => $class):?>
        	<li>
            	<h3><a href="<?=gurl('found/'.$class['id']);?>"><?=$class['name'];?></a><em class="cDGray">(<?=$class['scount'];?>)</em></h3>
                <p>
                <? if($class["subclass"] && count($class["subclass"]) > 0):?>
                <? foreach ($class["subclass"] as $sub):?>
                <a href="<?=gurl('found/'.$class['id'].'/'.$sub['id']);?>"><?=$sub["name"];?></a>
                <? endforeach;?>
                <? endif;?>
                ...</p>
            </li>
        <? endforeach;?>
            <li class="last">
            	<h3><a href="<?=gurl('rank');?>"  class="cOrange">轻站排行榜</a></h3>
                <p><a href="<?=gurl('rank');?>" >人气轻站</a><a href="<?=gurl('rank');?>" >新增人气</a><a href="<?=gurl('rank');?>" >新开张</a></p>
            </li>
        </ul>
		<div class="hackbox"></div>
	</div>
	<div class="sider">	
		<div class="searchBox">
		<input name="keyword2" id="keyword2" type="text" class="hotwebSearch" dataType="Require" msg="请输入关键字" />
		<p class="hotSkey"><input name="" type="button" value="搜索轻站" onclick="gosearch('site');" /><input name="" type="button" value="搜索话题" onclick="gosearch('topic');" /></p>  
		</div> 
        <h3>潜力轻站</h3>
        <ul class="listHot">
            <? foreach ($hotsites as $site):?>
				<li>
					<span class="listImg60"><img src="<?=gurl('images');?>/tran.gif" class="blank"><a href="<?=c('site_url');?><?=$site['domain'];?>"><img src="<?=gurl('data');?>/upload_pic/<?=$site['info']['logo'];?>" onerror="this.src='<?=gurl('images');?>/testlogo1.gif';" alt="<?=$site['name'];?>" width="60" height="60" /></a></span>
					<span class="listTxt"><a href="<?=c('site_url');?><?=$site['domain'];?>"><?=$site['name'];?></a><em class="cCGray">(<?=$site['fans'];?>)</em></span>
				</li>
			<? endforeach;?>
        </ul>
        <div class="blank8"></div>
        <h3>轻站开张</h3>
        <ul class="listHot">
        	<? foreach ($newsites as $site):?>
				<li>
					<span class="listImg60"><img src="<?=gurl('images');?>/tran.gif" class="blank"><a href="<?=c('site_url');?><?=$site['domain'];?>"><img src="<?=gurl('data');?>/upload_pic/<?=$site['info']['logo'];?>" onerror="this.src='<?=gurl('images');?>/testlogo1.gif';" alt="<?=$site['name'];?>" width="60" height="60" /></a></span>
					<span class="listTxt"><a href="<?=c('site_url');?><?=$site['domain'];?>"><?=$site['name'];?></a><em class="cCGray">(<?=$site['fans'];?>)</em></span>
				</li>
			<? endforeach;?>
        </ul>
	</div>
	<div class="hackbox"></div>
</div>
